﻿<local:WelcomePageBase
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages"
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
    x:Class="Com.PhilChuang.Mobile.Apps.LocationSender.Ui.Views.Impl.Pages.WelcomePage"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" d:DataContext="{d:DesignData /SampleData/WelcomePageViewModelSampleData.xaml}"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True"
	IsEnabled="{Binding AllControlsEnabled}">

	<local:WelcomePageBase.ApplicationBar>
		<shell:ApplicationBar>
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem x:Name="g_btn_About" Text="about" Click="g_btn_About_Click" />
				<shell:ApplicationBarMenuItem x:Name="g_btn_RateThisApp" Text="rate this app" Click="g_btn_RateThisApp_Click" />
			</shell:ApplicationBar.MenuItems>
			<shell:ApplicationBarIconButton x:Name="g_btn_Resend" Text="resend last" IconUri="/res/img/icons/appbar.arrowupright.rest.png" Click="g_btn_Resend_Click"/>
			<shell:ApplicationBarIconButton x:Name="g_btn_Settings" Text="settings" IconUri="/res/img/icons/appbar.feature.settings.rest.png" Click="g_btn_Settings_Click"/>
		</shell:ApplicationBar>
	</local:WelcomePageBase.ApplicationBar>

	<!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Margin="12,0,0,12">
			<TextBlock x:Name="ApplicationTitle" Margin="-12,0,0,0" Text="{Binding AppVersionString}" Style="{StaticResource PhoneTextNormalStyle}"/>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.RowDefinitions>
        		<RowDefinition Height="Auto"/>
        		<RowDefinition/>
				<RowDefinition Height="Auto"/>
        	</Grid.RowDefinitions>
			<TextBlock TextWrapping="Wrap" Text="{Binding AppStatus}" Style="{StaticResource PhoneTextNormalStyle}" HorizontalAlignment="Center" VerticalAlignment="Top">
				<TextBlock.Foreground>
					<SolidColorBrush Color="{StaticResource PhoneSubtleColor}"/>
				</TextBlock.Foreground>
			</TextBlock>
			<Microsoft_Phone_Controls_Maps:Map x:Name="g_Map" Margin="-12,0,-12,0" Grid.Row="1" CredentialsProvider="{Binding BingMapsCredentials}">
				<Microsoft_Phone_Controls_Maps:Map.Mode>
					<Microsoft_Phone_Controls_Maps:AerialMode ShouldDisplayLabels="True" AnimationLevel="Full" />
				</Microsoft_Phone_Controls_Maps:Map.Mode>
			</Microsoft_Phone_Controls_Maps:Map>
			<Button x:Name="g_btn_SelectContacts" Content="Select Recipients" Grid.Row="2" Click="g_btn_SelectContacts_Click" IsEnabled="{Binding SelectContactsButtonEnabled}"/>
		</Grid>
		
    </Grid>

</local:WelcomePageBase>